# Copyright 2024 The Kumo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

kmcmake_cc_test(
        NAME array_binary_test
        MODULE array
        SOURCES array_binary_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME array_dict_test
        MODULE array
        SOURCES array_dict_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME array_list_test
        MODULE array
        SOURCES array_list_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME array_list_view_test
        MODULE array
        SOURCES array_list_view_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME array_run_end_test
        MODULE array
        SOURCES array_run_end_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME array_struct_test
        MODULE array
        SOURCES array_struct_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME array_test
        MODULE array
        SOURCES array_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME array_union_test
        MODULE array
        SOURCES array_union_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        nebula::ipc_test_common_static
        nebula::nebula_testing_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME array_view_test
        MODULE array
        SOURCES array_view_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME concatenate_test
        MODULE array
        SOURCES concatenate_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)

kmcmake_cc_test(
        NAME diff_test
        MODULE array
        SOURCES diff_test.cc
        CXXOPTS
        ${KMCMAKE_CXX_OPTIONS}
        LINKS
        KTest::ktest
        KTest::ktest_main
        nebula::nebula_testing_static
        nebula::nebula_static
        ${KMCMAKE_DEPS_LINK}
)